
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class TeamTeamCfg : public ManualSingleton <TeamTeamCfg>
{
	friend ManualSingleton <TeamTeamCfg>;
public:
	TeamTeamCfg();
	~TeamTeamCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const TeamTeamCfgInfo *GetTeamTeamCfgInfo(int32_t TeamObjectID);
	const TeamTeamCfgMap *GetTeamTeamCfgMap() { return &m_TeamTeamCfgMap; }
private:
	TeamTeamCfgMap m_TeamTeamCfgMap;
};

#define  g_MakeTeamTeamCfgTable() (TeamTeamCfg::Instance())
#define  g_GetTeamTeamCfgTable() (TeamTeamCfg::GetInstance())
#define  g_DelTeamTeamCfgTable() (TeamTeamCfg::Destroy())